//二次封装：针对具体的业务逻辑的封装
//引入自己写的封装模块

import newAxios from "../util/AxiosUtil";

export function login(id, pass) {
    return newAxios.post("/user/login", { username: id, password: pass })
}

export function register(user) {
    return newAxios.post("/user/reg", user);
}